/*
 * @Author: caihongtai caihongtai
 * @Date: 2025-02-13 21:44:27
 * @LastEditors: caihongtai caihongtai
 * @LastEditTime: 2025-04-02 22:27:07
 * @FilePath: /ai-interview-vue/src/api/pay.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

export const payApi = {

    // 创建订单
    createOrder(data) {
        return request.post('/api/pay/create-order', data)
    },

    // 查询订单状态
    checkOrderStatus(orderNo) {
        return request.get(`/api/pay/check-order/${orderNo}`)
    },

    // 获取微信配置
    getWxConfig(url) {
        return request.get('/api/pay/wx-config', { url })
    }
} 